﻿using System.IO;
using System.Web;

namespace Mvc4Demo.Tests.Extensions
{
    public static class HttpHelper
    {
        public static void SetCurrent()
        {
            var memStream = new MemoryStream();
            var txtWriter = new StreamWriter(memStream);
            HttpContext.Current = new HttpContext(new HttpRequest("", "http://localhost", "abc=123"),
                                                  new HttpResponse(txtWriter));
        }
    }
}